package com.bjh.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 拿到连接zookeeper的地址
 */
@Component
@ConfigurationProperties(prefix = "bjh")
public class ZkPropertiesSource {


    private String connectString;

    private String packageName;

    private Integer nettyServerPort;

    private Integer nettyConnectPort;

    public String getConnectString() {
        return connectString;
    }

    public void setConnectString(String connectString) {
        this.connectString = connectString;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public Integer getNettyServerPort() {
        return nettyServerPort;
    }

    public void setNettyServerPort(Integer nettyServerPort) {
        this.nettyServerPort = nettyServerPort;
    }

    public Integer getNettyConnectPort() {
        return nettyConnectPort;
    }

    public void setNettyConnectPort(Integer nettyConnectPort) {
        this.nettyConnectPort = nettyConnectPort;
    }
}
